import React from 'react';
import './xiongda.css'
import { BrowserRouter as Router, Route, Link, HashRouter, Switch } from 'react-router-dom';
class Xiong extends React.Component {
    constructor() {
        super();
        this.state = {
            minHeader: false, // 默认加载的时候不是mini的头部
            xiongda:5555555555
        }
    };

    switchHeader() {
        this.setState({
            minHeader: !this.state.minHeader
        })
    };

    render() {
        const styleComponentHeader = {
            header: {
                backgroundColor: '#333',
                color: '#fff',
                paddingTop: (this.state.minHeader) ? '3px' : '15px',
                paddingBottom: (this.state.minHeader) ? '3px' : '15px'
            }
            // 还可以定义其它的样式
        };
        return (

                <div className="div">
                    <a href='http://www.baidu.com'>熊大页面{this.state.xiongda}</a>
                </div>
        )
    }
}
export default Xiong;